<?php
$this->Html->css('controllers/Welcome/associated.css?1', array('block' => 'stylesTop'));
$this->Html->css('controllers/Passports/passportA.css?1', array('block' => 'stylesTop'));
$this->Html->script('controllers/Welcome/associated.js?1', array('block' => 'scriptBottom'));
?>
<div id="certstrains">
    <script type="text/x-kendo-template" class="certstrainsTemplate">
        <div class="container-ce"> 
            <div class="nombre-ce" title="#:data.moe# - #:data.area# - #:data.line#">
                #:data.line# 
            </div>
            <div class="info-ce" title="#:data.level#">
                <div class="icono-ce #:data.icon#" style="color:#:data.colour#"></div>
                <div class="nivel-ce">#:data.level#</div>
            </div>
            <div class="tools">
                <a title="<?php echo __('Mis certificaciones vigentes'); ?> (#:data.nCert#)" href="<?php echo $this->Html->url(array('controller' => 'Certifications', 'action' => 'index')); ?>/index/#=data.line_id#"><i class="fa fa-certificate"></i></a>
                <a title="<?php echo __('Mis certificaciones en entrenamiento'); ?> (#:data.nTrain#)" href="<?php echo $this->Html->url(array('controller' => 'Trainings', 'action' => 'index')); ?>/index/#=data.line_id#"><i class="fa fa-flag"></i></a>
                <a title="<?php echo __('Mis cursos'); ?>"
                   href="<?php echo $this->Html->url(array('controller' => 'Trainings', 'action' => 'evaluations')); ?>"><i
                        class="fa fa-graduation-cap"></i></a>
                <a title="<?php echo __('Pasaporte'); ?>" href="<?php echo $this->Html->url(array('controller' => 'Passports', 'action' => 'passport')); ?>/#=data.mid#/#=data.aid#/#=data.line_id#/#=data.payroll#"><i class="fa fa-list"></i></a>
            </div>
            <div class="assignDate" title="#=kendo.toString(new Date(data.assign_date.replace(/-/g, '/')), 'D')#">
                <label><?php echo __('Fecha de ingreso a la línea');?></label>
                #=kendo.toString(new Date(data.assign_date.replace(/-/g, '/')), 'd')#
            </div>
            <div class="days">
                <label><?php echo __(' Días en la línea'); ?>:</label>
                #=kendo.toString(parseInt(data.days), "n0")#
            </div>
        </div>
    </script>
</div>
<?php $this->start('jsVars'); ?>
<script type="text/javascript">
    var certs_trains = <?php echo json_encode($certs_trains); ?>;
</script>
<?php
$this->end();
